import React from 'react'
import ContractTable from './ContractTable'
import GetPages from './GetPages';
import { inject, observer } from 'mobx-react'
import '../../assets/css/contract/GetPages.css'
function DuetoMonth(props) {
  const onPageChange = (page, size) => {
    console.log(page);
    console.log(size);
    props.contractStore.currentPage = page
    props.contractStore.pageSize = size
  }
  return (
    <div className='ContractFather'>
      <ContractTable />
      <GetPages total={props.contractStore.total} onPageChange={onPageChange} className='GetPages' />
    </div>
  )
}
export default inject('contractStore')(observer(DuetoMonth))